<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="head.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
	<SCRIPT language=javaScript>
function CheckJob()
{
	if (document.form1.Quarters.value.length < 2 || document.form1.Quarters.value.length > 30){
		alert ("提示：\n\n职位必须在2-30字之间！");
		document.form1.Quarters.focus();
		return false;
	}
	if (document.form1.Name.value.length < 2 || document.form1.Name.value.length > 16){
		alert ("提示：\n\n姓名必须在2-16字之间！");
		document.form1.Name.focus();
		return false;
	}
	if (document.form1.Birthday.value.length!=10){
		alert ("提示：\n\n出生日期格式不对！");
		document.form1.Birthday.focus();
		return false;
	}
	if (document.form1.Stature.value.length != 3){
		alert ("提示：\n\n身高格式不对！");
		document.form1.Stature.focus();
		return false;
	}
	if (document.form1.Residence.value.length < 4 ||document.form1.Residence.value.length > 30 ){
		alert ("提示：\n\n户籍所在地在4-30个符之间！");
		document.form1.Residence.focus();
		return false;
	}
	if (document.form1.Edulevel.value.length < 20 ){
		alert ("提示：\n\n教育经历必须在20字以上！");
		document.form1.Edulevel.focus();
		return false;
	}
	if (document.form1.Experience.value.length < 20 ){
		alert ("提示：\n\n工作经历必须在20字以上！");
		document.form1.Experience.focus();
		return false;
	}
	if (document.form1.Phone.value == "" || document.form1.Phone.value.length < 8){
		alert ("提示：\n\n联系电话必须在8个字符以上！");
		document.form1.Phone.focus();
		return false;
	}

    if(document.form1.Email.value.length!=0)
     {
       if (document.form1.Email.value.charAt(0)=="." ||        
            document.form1.Email.value.charAt(0)=="@"||       
            document.form1.Email.value.indexOf('@', 0) == -1 || 
            document.form1.Email.value.indexOf('.', 0) == -1 || 
            document.form1.Email.value.lastIndexOf("@")==document.form1.Email.value.length-1 || 
            document.form1.Email.value.lastIndexOf(".")==document.form1.Email.value.length-1)
        {
         alert("Email地址格式不正确！");
         document.form1.Email.focus();
         return false;
         }
      }
    else
     {
      alert("Email不能为空！");
      document.form1.Email.focus();
      return false;
      }
 }
</SCRIPT>


<table width="991" height="353" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:16px; margin-bottom:26px;">
  <tr>
    <td width="13" valign="top"></td>
    <td width="209" valign="top"><table width="209" height="32" border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F6DD">
      <tr>
        <td width="87" class="ab4" style="padding-left:15px; padding-top:3px;">招聘中心</td>
        <td width="13" class="ab4" ><img src="images/imgbyj/line.gif" width="13" height="32" /></td>
        <td width="109" class="r2" style="padding-top:7px;">Honor </td>
      </tr>
    </table>
        <table width="209" height="28" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="images/imgbyj/ab2.gif" width="209" height="28" /></td>
          </tr>
        </table>
      <table width="209" height="84" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center" valign="top" background="images/imgbyj/ab3.gif">

		<%
			AboutusDaoImpl aboutusDaoImpl=new AboutusDaoImpl();
			List<Aboutus> aboutus=aboutusDaoImpl.getAboutusList();
			if(aboutus!=null&&aboutus.size()>0)
				for(Aboutus aboutus2:aboutus){
		
		 %>


                <table width="171" height="29" border="0" cellpadding="0" cellspacing="0" background="images/imgbyj/abbg.gif" style="margin-bottom:12px;">
                  <tr>
                    <td align="left"><a href="Aboutus.jsp?Title=<%=aboutus2.getTitle() %>" class="lmenu" style="padding-left:50px; padding-top:4px;"><%=aboutus2.getTitle() %></a></td>
                  </tr>
                </table>

            <%} %>




            </td>
          </tr>
      </table>
      <table width="209" height="16" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="images/imgbyj/ab4.gif" width="209" height="16" /></td>
        </tr>
      </table></td>
    <td width="22" valign="top"></td>
    <td width="747" valign="top"><table width="747" height="28" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="69" class="ab4" style="padding-top:5px;"></td>
        <td width="113"><img src="images/imgbyj/ab5.gif" width="89" height="28" /></td>
        <td width="404" align="right"><img src="images/imgbyj/ab6.gif" width="45" height="28" /></td>
        <td width="161" class="ab5" style="padding-top:5px;">&gt; 招聘中心 &gt; </td>
      </tr>
    </table>
        <table width="740" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#D0D0C5">
          <tr>
            <td height="1"></td>
          </tr>
        </table>
      <table width="723" height="264" border="0" align="center" cellpadding="0" cellspacing="0" style=" margin-top:41px; margin-left:12px; margin-right:12px;">
          <tr>
            <td valign="top" class="aboutus">




<table width="747" height="28" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="69" class="ab4" style="padding-top:5px;">应聘岗位</td>
        <td width="113"><img src="images/imgbyj/ab5.gif" twidth="89" height="28" /></td>
        <td width="404" align="right"><img src="images/imgbyj/ab6.gif" width="45" height="28" /></td>
        <td width="161" class="ab5" style="padding-top:5px;">&gt; 人才中心 &gt; 招聘列表</td>
      </tr>
    </table>


<%
	String job=request.getParameter("job");
	RecruitDaoImpl recruitDaoImpl=new RecruitDaoImpl();
	Recruit recruit=null;
	if(job!=null)
		recruit=recruitDaoImpl.get(job);
		
	
	

 %>






<table width="723" height="264" border="0" align="center" cellpadding="0" cellspacing="0" style=" margin-top:21px; margin-left:12px; margin-right:12px;">
                  <tr>
                    <td height="206" valign="top">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr valign=top >
                            <td  width="80%" height="18"><form name="form1" method="post" onSubmit="return CheckJob()" action="<%=basePath%>employee-add.action">
                            <s:token/>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><div align="center"></div></td>
                                  </tr>
                                </table>
                                <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" >
                                  <tr bgcolor="#FFFFFF">
                                    
                                    <td width="107" height="30"><div align="right"><font color=#000066>职　　位：&nbsp; </font></div></td>
                                    <td width="559" height="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                      <input   name='job'  id=jobname   value="<%=recruit.getJob() %>" size="36">
                    * </td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF">
                                    <td width="107"><div align="right"><font color=#000066>个人资料：&nbsp;</font></div></td>
                                    <td valign="top"><table width="500" border=0 cellpadding="2" cellspacing="1">
                                        <tbody>
                                          <tr>
                                            <td width="17%" height="20" align=right>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
                                            <td width="83%"><input  name="myname">
                            * </td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
                                            <td><select id="sex" name="Sex">
                                                <option value="男" selected>男</option>
                                                <option value="女">女</option>
                                              </select>
                            *</td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>婚姻状况：</td>
                                            <td><select id="Marry"   name="marryStatus">
                                                <option value="未婚"  selected>未婚</option>
                                                <option  value="已婚">已婚</option>
                                              </select>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>出生日期：</td>
                                            <td><input name="born">
                            *出生日期（如：1978-04-24）</td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>身&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;高：</td>
                                            <td><input name="height" id="stature" size="15" maxlength="3">
                            *(cm)（如：填 178）</td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>毕业院校：</td>
                                            <td><input name="school" size="40"></td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历：</td>
                                            <td><input name="education" size="30" maxlength="50"></td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>专&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;业：</td>
                                            <td><input name="profession" size="30" maxlength="50"></td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>毕业时间：</td>
                                            <td><input name="graduateTime" size="16"></td>
                                          </tr>
                                          <tr>
                                            <td align=right 
                                height=20>户 籍 地：</td>
                                            <td><input 
                                name="localtion" id=Residence 
                                size=40 maxlength="50">
                            *</td>
                                          </tr>
                                        </tbody>
                                    </table></td>
                                  </tr>
                                  <tr>
                                    <td width="107" bgcolor="#FFFFFF"><div align="right"><font color=#000066>教育经历：&nbsp;</font></div></td>
                                    <td align="center" bgcolor="#FFFFFF"><table width="100%" height=188 
                                border=0 align=center cellpadding="2" cellspacing="1">
                                      <tbody>
                                        <tr bgcolor="#FFFFFF">
                                          <td width="16%" 
height=21>&nbsp;学历</td>
                                          <td width="22%">&nbsp;起止时间</td>
                                          <td width="22%">&nbsp;专业名称</td>
                                          <td width="19%">&nbsp;证书</td>
                                          <td width="21%">&nbsp;学校名称</td>
                                        </tr>
                                        <tr valign=top bgcolor=#FFFFFF>
                                          <td colspan=5 align="left"><textarea id=Edulevel name="educationExperience" rows=12 cols=111></textarea>
                                            <br>
        * 教育经历必填，且要按上面的格式和发生时间先后填写!</td>
                                        </tr>
                                      </tbody>
                                    </table></td>
                                  </tr>
                                  <tr>
                                    <td width="107" bgcolor="#FFFFFF"><div align="right"><font color=#000066>工作经历：&nbsp;</font></div></td>
                                    <td bgcolor="#FFFFFF"><table width="100%" height=188 
                                border=0 align=center cellpadding="2" cellspacing="1">
                                      <tbody>
                                        <tr bgcolor="#FFFFFF">
                                          <td width="25%" 
height=21>&nbsp;起止时间</td>
                                          <td width="25%">&nbsp;职位名称</td>
                                          <td width="25%">&nbsp;服务单位</td>
                                          <td width="25%">&nbsp;工作内容</td>
                                        </tr>
                                        <tr valign=top bgcolor=#FFFFFF>
                                          <td colspan=4><textarea id=Experience name="workExperience" rows=12 cols=111></textarea>
                                              <br>
        * 工作经历必填，且要按上面的格式和发生时间先后填写!</td>
                                        </tr>
                                      </tbody>
                                    </table></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF">
                                    <td width="107"><div align="right"><font color=#000066>联系方式：&nbsp;</font> </div></td>
                                    <td><table width="500" border=0 cellpadding="2" cellspacing="1">
                                        <tbody>
                                          <tr>
                                            <td width="17%" height="20" align=right>联系电话：</td>
                                            <td width="83%"><input name='telephone' id=Phone size="25">
                            *   
                                          </tr>
                                          <tr>
                                            <td 
                                height=20 align=right>手机号码：</td>
                                            <td><input 
                                name='mobile' id=Mobile size="25">
                                            </td>
                                          </tr>
                                          <tr>
                                            <td 
                                height=20 align=right>E-mail地址：</td>
                                            <td><input 
                                name='email' id=Email size="25">
                            *</td>
                                          </tr>
                                          <tr>
                                            <td 
                                height=20 align=right>通信地址：</td>
                                            <td><input name='address' id=Add 
                               size=40></td>
                                          </tr>
                                          <tr>
                                            <td 
                                height=20 align=right>邮政编码：</td>
                                            <td><input 
                                name='postcode' id=Postcode size=10 maxlength=6></td>
                                          </tr>
                                        </tbody>
                                    </table></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF">
                                    <td width="107">&nbsp;</td>
                                    <td><div align="center">
                                        <input type="submit" name="submit8" value=" 提交 " >
&nbsp;&nbsp;
                      <input type="reset" name="Submit8" value=" 重置 ">
                                    </div></td>
                                  </tr>
                                </table>
                            </form></td>
                          </tr>
                        </table>
                        
                    </td>
                  </tr>
                </table>
			</td>
          </tr>
      </table></td>
  </tr>
</table>


<%@ include file="foot.jsp"%>